export function changeInitStepData(thisObj, param) {
  const _this = thisObj
  if (_this.stepList01.length > 0) {
    const S_REF_PANEL_NEW_REF_ID = _this.stepList01[0].active.S_REF_PANEL_NEW_REF_ID
    const S_REF_SHOW_DATA_KEY = _this.stepList01[0].active.S_REF_SHOW_DATA_KEY
    const stepInitUiVal = _this.uidata[S_REF_PANEL_NEW_REF_ID]
    _this.$refs[S_REF_SHOW_DATA_KEY].initUI(stepInitUiVal, param, _this.initSrcObj)
    _this.$refs[S_REF_SHOW_DATA_KEY].otherCompSetValOpenParam(null, param, _this.initSrcObj)
    _this.changeTableUi(S_REF_SHOW_DATA_KEY, param)
  }
}
export function changeStepActiveForm(thisObj) {
  // const _this = this
  // const stepInfo = this.stepActiveInfo.list[0]
  // const stepTplKey = stepInfo.S_REF_SHOW_DATA_KEY
  // const stepInitUiVal = _this.uidata[stepInfo.S_REF_PANEL_NEW_REF_ID]
  // _this.$refs[stepTplKey].initUI(stepInitUiVal, null, _this.openParam, _this.tableExtProp)
}
export function initSteps(thisObj) {
  if (thisObj.initUiVal.steps !== undefined && thisObj.initUiVal.steps.stepsKey !== undefined && thisObj.initUiVal.steps[thisObj.stepsKey01] !== undefined
  ) {
    thisObj.formStepShow = true
    this.steps = thisObj.initUiVal.steps
    console.log('thisObj.stepsKey01 ', thisObj.stepsKey01, thisObj.initUiVal.steps[thisObj.stepsKey01])
    thisObj.stepsInfo01 = thisObj.initUiVal.steps[thisObj.stepsKey01]
    thisObj.stepList01 = thisObj.initUiVal.steps[thisObj.stepsKey01].stepList
  }
}

export function initStepList(thisObj) {
  if (thisObj.initUiVal.steps !== undefined &&
    thisObj.initUiVal.steps.step1 !== undefined &&
    thisObj.initUiVal.steps.step1.stepList.length > 0) {
    thisObj.formStepShow = true
    thisObj.stepInfo = thisObj.initUiVal.steps.step1
    thisObj.stepList = thisObj.initUiVal.steps.step1.stepList
    thisObj.stepActiveInfo = thisObj.stepList[thisObj.stepListActiveKey]
  }
}
